package net.xiduth.game.player.content;


import net.xiduth.game.World;
import net.xiduth.game.player.Player;


public class Ranks {

	public static void checkRank(Player player) {
	if (player.ranks == 100) {
		player.privatee = true;
		player.ranked = true;
		World.sendWorldMessage("<img=7><col=FFA500>News: "+ player.getDisplayName() +" has been promoted to Private!", false);
		player.rankpoints += 100;
		player.sm("You receive a bonus of 100 rank points for your promotion.");
		player.sm("You now have "+ player.rankpoints +" rank points.");
		}
	if (player.ranks == 250) {
		player.specialist = true;
		player.privatee = false;
		World.sendWorldMessage("<img=7><col=FFA500>News: "+ player.getDisplayName() +" has been promoted to Specialist!", false);
		player.rankpoints += 100;
		player.sm("You receive a bonus of 100 rank points for your promotion.");
		player.sm("You now have "+ player.rankpoints +" rank points.");
		}
	if (player.ranks == 350) {
		player.corporal = true;
		player.specialist = false;
		player.privatee = false;
		World.sendWorldMessage("<img=7><col=FFA500>News: "+ player.getDisplayName() +" has been promoted to Corporal!", false);
		player.rankpoints += 150;
		player.sm("You receive a bonus of 150 rank points for your promotion.");
		player.sm("You now have "+ player.rankpoints +" rank points.");
		}
	if (player.ranks == 500) {
		player.sergeant = true;
		player.corporal = false;
		player.specialist = false;
		player.privatee = false;
		World.sendWorldMessage("<img=7><col=FFA500>News: "+ player.getDisplayName() +" has been promoted to Sergeant!", false);
		player.rankpoints += 150;
		player.sm("You receive a bonus of 150 rank points for your promotion.");
		player.sm("You now have "+ player.rankpoints +" rank points.");
		}
	if (player.ranks == 850) {
		player.lieutenant = true;
		player.sergeant = false;
		player.corporal = false;
		player.specialist = false;
		player.privatee = false;
		World.sendWorldMessage("<img=7><col=FFA500>News: "+ player.getDisplayName() +" has been promoted to Lieutenant!", false);
		player.rankpoints += 200;
		player.sm("You receive a bonus of 200 rank points for your promotion.");
		player.sm("You now have "+ player.rankpoints +" rank points.");
		}
	if (player.ranks == 1200) {
		player.captain = true;
		player.lieutenant = false;
		player.sergeant = false;
		player.corporal = false;
		player.specialist = false;
		player.privatee = false;
		World.sendWorldMessage("<img=7><col=FFA500>News: "+ player.getDisplayName() +" has been promoted to Captain!", false);
		player.rankpoints += 200;
		player.sm("You receive a bonus of 200 rank points for your promotion.");
		player.sm("You now have "+ player.rankpoints +" rank points.");
		}
	if (player.ranks == 2000) {
		player.major = true;
		player.captain = false;
		player.lieutenant = false;
		player.sergeant = false;
		player.corporal = false;
		player.specialist = false;
		player.privatee = false;
		World.sendWorldMessage("<img=7><col=FFA500>News: "+ player.getDisplayName() +" has been promoted to Major!", false);
		player.rankpoints += 200;
		player.sm("You receive a bonus of 200 rank points for your promotion.");
		player.sm("You now have "+ player.rankpoints +" rank points.");
		}
	if (player.ranks == 3000) {
		player.colonel = true;
		player.major = false;
		player.captain = false;
		player.lieutenant = false;
		player.sergeant = false;
		player.corporal = false;
		player.specialist = false;
		player.privatee = false;
		World.sendWorldMessage("<img=7><col=FFA500>News: "+ player.getDisplayName() +" has been promoted to Colonel!", false);
		player.rankpoints += 200;
		player.sm("You receive a bonus of 200 rank points for your promotion.");
		player.sm("You now have "+ player.rankpoints +" rank points.");
		player.sm("You have reached the maximum rank for now.");
		player.sm("More ranks will be added soon.");
		}
	}
}
